POV-Ray : Newsgroups : povray.general : Feature Request: Items belongng to groups : Feature Request: Items belongng to groups Server Time
2 Aug 2024 08:18:29 EDT (-0400)
  Feature Request: Items belongng to groups  
From: Allen
Date: 29 Nov 2004 10:25:00
Message: <web.41ab3eac68021735b6f79dd70@news.povray.org>
This is just a crazy idea and I'm just wondering if anyone thinks this would
be a nice feature if it could even be done.

The idea is that all POV-Ray elements would have support or a 'group'
keyword.  This keyword would take a string parameter that would contain a
comma seperated list of groups that the item belongs to.  Also, special
groups might exist, like 'all'.  Then, you could define some interaction of
various items based on what groups they belong to.  Other keywords would
have to exist for this.

For example, if you had 4 mirrors pointing two 2 sphere (one on top, one on
bottom), and you only wanted the first and third mirror to reflect the top
sphere and the second and fourth to reflect the bottom you could.

In the object for mirror 1 and 3 you could say something like: group
"m1,mirrors"

In 2 and 4 you could say: group "m2, mirrors"

Then, with other additional functionality, in the top sphere you could say:
cast_reflection "-all,+m1"  and int the bottom sphere you could say:
cast_reflection "-all,+m2"

Also, this could be used for group transforms.  You could move many items
belonging to a group or even be more specific and only move items in one
group that is not in another.

For example, this would rotate all items in group m1 that are not in group
m2
group_transform {
  affects "-all,+m1,-m2"

  rotate x*90
}

Again, this is just a crazy idea of mine and I'm curious what others think
of it.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.